<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Migration_Table_Commodity_ModifyColumn_ContactCanBeNull extends CI_Migration
{
    public function up()
    {
        $fields = array(
            'contact' => array('name' => 'contact', 'type' => 'VARCHAR', 'constraint' => '50', 'null' => TRUE,),
        );
        $this->dbforge->modify_column('commodity', $fields);
    }

    public function down()
    {
        $fields = array(
            'contact' => array('name' => 'contact', 'type' => 'VARCHAR', 'constraint' => '50',),
        );
        $this->dbforge->modify_column('commodity', $fields);
    }
} 